package com.xwq.xwqaiagent.demo.invok;

import dev.langchain4j.community.model.dashscope.QwenChatModel;
import dev.langchain4j.model.chat.ChatLanguageModel;


/**
 * LangChain4j 调用阿里灵积
 */
public class LangChainAiInvoke {

    public static void main(String[] args) {
        ChatLanguageModel qwenModel = QwenChatModel.builder()
                .apiKey(TextApiKey.API_KEY)
                .modelName("qwen-max")
                .build();
        String answer = qwenModel.chat("我是程序员徐伟强，这是我的超级智能体原创项目");
        System.out.println(answer);
    }
}
